//
//  SDAPI.h
//  skinDetection
//
//  Created by  liangzhun on 2018/11/7.
//  Copyright © 2018年  liangzhun. All rights reserved.
//

#ifndef SDAPI_h
#define SDAPI_h

#define INTERFACE_PREFIX @"/cosmetology"
#define BASE_URL @"http://47.103.51.14:10000"
#pragma mark - 短信登录
#define SD_API_SMSLOGIN @"/user/smsLogin"

#pragma mark - 第三方登录
#define SD_API_THIRDLOGIN @"/user/thirdLogin"
#pragma mark - 获取验证码
#define SD_API_VERIFCODE @"/user/getSms"
#pragma mark - 绑定手机号
#define SD_API_BOUNDNUMBER [NSString stringWithFormat:@"/user/bindPhone/%.0f",SDAppDelegate.userModel.id]
#pragma mark - 皮肤检测类别细分
#define SD_API_getSkinCheckSub @"/skin/getSkinCheckSub/"

#pragma mark - 生成检测报告
#define SD_API_GENERATEREPORT [NSString stringWithFormat:@"/skin/generateReport/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 获取我的检测报告列表
#define SD_API_GETMYCHECKREPORT [NSString stringWithFormat:@"/skin/getMyCheckReport/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 获取用户检测报告列表
#define SD_API_GETCUSTCHECKREPORT [NSString stringWithFormat:@"/skin/getCustCheckReport/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 获取报告详情
#define SD_API_GETREPORTINFO @"/skin/getReportInfo/"

#pragma mark - 问卷调查
#define SD_API_QUESTIONSURVEY [NSString stringWithFormat:@"/skin/questionSurvey/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 删除检测报告
#define SD_API_DELETEREPORT [NSString stringWithFormat:@"/skin/deleteReport/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 获取商品列表
#define SD_API_PRDUCTLIST [NSString stringWithFormat:@"/product/getRecommendList/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 获取类别商品列表
#define SD_API_PRDUCTCATEGORYLIST [NSString stringWithFormat:@"/product/getProductList/%.0f",SDAppDelegate.userModel.id]

#pragma mark - 获取个人推荐商品列表
#define SD_API_RECOMMENDBYUSER @"/product/recommendByUser/"

#pragma mark - 获取个人推荐商品列表（检测完）
#define SD_API_RECOMMENDBYUSERALL @"/product/recommendByUserAll/"
#pragma mark - 分享检测报告
#define SD_API_ShareReport @"/page/skinCheckReport/share"

#pragma mark - 第三方登录开关
#define SD_API_ThirdLoginOff @"/user/thirdLoginController/"

#pragma mark - 问卷调查
#define SD_API_QuestionSurveyGetAll @"/question/questionSurvey/getAll"
/*问卷调查（结果）*/
#define SD_API_getResult @"/question/questionSurvey/getResult/"
/*生成问卷调查报告*/
#define SD_API_GenerateReport_Question [NSString stringWithFormat:@"/question/generateReport/%.0f",SDAppDelegate.userModel.id]
/*获取问卷调查报告列表*/
#define SD_API_GetQuestionReport [NSString stringWithFormat:@"/question/getQuestionReport/%.0f",SDAppDelegate.userModel.id]

/*删除问卷调查报告*/
#define SD_API_DeleteQuestionReport [NSString stringWithFormat:@"/question/deleteReport/%.0f",SDAppDelegate.userModel.id]
/*获取问卷调查报告详情*/
#define SD_API_GetQuestionReportDetail @"/question/getQuestionReportDetail/"

#endif /* SDAPI_h */
